﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DotNetExtensions.Core.Converters
{
    public class NumberConvert
    {
        public static string ToHex(int number)
        {
            return Convert.ToString(number, 16);
        }

        public static int FromHex(string hex)
        {
            return Convert.ToInt32(hex, 16);
        }
    }
}
